from flask import Flask
app = Flask(__name__)

#加载配置
from config import Config 
app.config.from_object(Config)
from flask_cors import CORS
CORS(app)
#注册优惠卷蓝图模块
from course import bp_course
app.register_blueprint(bp_course,url_prefix='/course')

if __name__ == "__main__":
    app.run(host='127.0.0.1',port=5000)